<div class="layui-card">
    <div class="layui-card-body">
        <div>
            <form action="{:url('question/admin.questcate/delcategory')}" method="post" class="layui-form" id="cp-form">
                <div class="layui-btn-group">
                    <a href="{:url('question/admin.questcate/addcategory')}" class="layui-btn layui-btn-xs">
                        <i class="layui-icon layui-icon-addition"></i>
                        添加题目分类
                    </a>
                    <button class="layui-btn layui-btn-xs layui-btn-danger clearExceptionNode">
                        <i class="layui-icon">&#xe640;</i>
                        删除题目分类
                    </button>
                </div>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th width="10"></th>
                        <th width="120">名称</th>
                        <th width="120">层级</th>
                        <th width="">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="cateList" id='v'}
                    <tr>
                        <td align="center" valign="middle">
                            <input type="checkbox" name="idList[]" class="layui-input" lay-skin="primary" value="{$v.id}">
                        </td>
                        <td >{$v.name}</td>
                        <td >{$v.pid}</td>
                        <td>
                            <a href="{:url('question/admin.questcate/editcategory',['id'=>$v['id']])}" class="layui-btn layui-btn-xs layui-btn-danger clearExceptionNode">
                                <i class="layui-icon layui-icon-edit"></i>
                                编辑
                            </a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </form>
            {$cateList|raw}
        </div>
    </div>
</div>